﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CustomerContactSystem.WebForms.Admin.Reps.List" %>
<%@ Import Namespace="CustomerContactSystem.Core.Infrastructure.Utility" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Reps</h1>
<asp:HyperLink ID="CreateNewLink" runat="server" Text="Create New Rep" NavigateUrl="~/Admin/Reps/Create.aspx" CssClass="button"></asp:HyperLink>
<asp:Repeater ID="RepsList" runat="server" OnItemDataBound="RepsListItemDataBound">
<HeaderTemplate>
<table>
    <thead>
        <tr>
            <th id="Name">Name</th>
            <th id="Email">Email</th>
            <th id="IsActive">Is Active?</th>
            <th id="Options">Options</th>
        </tr>
    </thead>
    <tbody>
</HeaderTemplate>
<ItemTemplate>
        <tr>
            <td headers="Name"><a id='<%#Eval("Id")%>'></a><%#Eval("FullName")%></td>
            <td headers="Email"><%#Eval("Email")%></td>
            <td headers="IsActive"><%#Eval("IsActive").ToString().ToYesNo()%></td>
            <td headers="Options">
                <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
            </td>
        </tr>
</ItemTemplate>
<FooterTemplate>
    </tbody>
</table>
</FooterTemplate>
</asp:Repeater>    
</asp:Content>
